package com.yunji.coupon.doamin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.base.BaseDelFlagDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author : peter-zhu
 * @date : 2024/10/23 20:48
 * @description : TODO
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tt_cp_coupon")
public class CouponDO extends BaseDelFlagDO {
    @TableId(type = IdType.AUTO)
    private Long couponId;
    private Long userId;
    private Long couponTmplId;
    private String nickName;
    // 优惠券状态 0 未使用 1 已使用 -1已撤回 -2 已失效
    private Integer couponStatus;
    private String phone;
    private Date validPeriodS;
    private Date validPeriodE;
}
